package com.alumni_circle.core.entity.access;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 龙小虬
 * @since 2020-08-27 16:33
 */
@Data
public class AccessLog {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "请求信息")
    private String accessInfo;

    @ApiModelProperty(value = "用户Id")
    @JsonIgnore
    private String userId;

    @ApiModelProperty(value = "请求url")
    private String url;

    @ApiModelProperty(value = "用户")
    private String userName;

    @ApiModelProperty(value = "请求IP")
    private String accessIp;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "操作时间")
    private String createTime;

}
